package kuaishou

import (
	"net/http"
)

// 商家同意退款请求
type SellerOrderRefundApproveRequest struct {
	RefundId         int `json:"refundId"`         // 退款单编号
	RefundHandingWay int `json:"refundHandingWay"` // 退款方式
	RefundAmount     int `json:"refundAmount"`     // 退款金额,单位:分
	Status           int `json:"status"`           // 退款单当前状态
	NegotiateStatus  int `json:"negotiateStatus"`  // 协商状态
}

// 商家同意退款响应
type SellerOrderRefundApproveResponse struct {
	BaseResponse
}

func (r *SellerOrderRefundApproveRequest) RequestMethod() string {
	return http.MethodPost
}

func (r *SellerOrderRefundApproveRequest) RequestPath() string {
	return "/open/seller/order/refund/approve"
}

func (r *SellerOrderRefundApproveRequest) ApiName() string {
	return "open.seller.order.refund.approve"
}
